package com.spotbook.providers;

import android.content.ContentUris;
import android.net.Uri;
import android.provider.BaseColumns;

public final class Contract implements BaseColumns {
	static final int VERSION = 1;
	static final String FILE = "spots";

	public static final String TABLE = "spots";
	public static final String CONTENT_TYPE = "";
	public static final String CONTENT_ITEM_TYPE = "";

	public static final String AUTHORITY = "com.spotbook";
	public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY
			+ "/" + TABLE);

	public static final Uri build(long id) {
		return ContentUris.withAppendedId(CONTENT_URI, id);
	}

	public static final long getId(Uri uri) {
		return ContentUris.parseId(uri);
	}

	public static final String _NAME = "spot_name";
	public static final String _SUMMARY = "spot_summary";
	public static final String _LATITUDE = "spot_latitude";
	public static final String _LONGITUDE = "spot_longitude";
	public static final String _THUMBNAIL = "spot_thumbnail";

	private Contract() {
	}
}
